package com.csaba.connector.model;

import java.util.Date;

public class HistoryItem extends AbstractRemoteObject
{
	private Account owner;
	private String description;
	private Amount amount;
	private Date date;

	/**
	 * Balance of the owner account after processing the transaction (running balance).
	 */
	private Amount balance;

	@Override
	public String toString()
	{
		return "HistoryItem[" + owner + ";" + description + ";" + amount + ";" + date + ";" + balance; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
	}

	public Account getOwner()
	{
		return owner;
	}

	public void setOwner( Account owner )
	{
		this.owner = owner;
	}

	public Amount getAmount()
	{
		return amount;
	}

	public void setAmount( Amount amount )
	{
		this.amount = amount;
	}

	public Date getDate()
	{
		return date;
	}

	public void setDate( Date date )
	{
		this.date = date;
	}

	public Amount getBalance()
	{
		return balance;
	}

	public void setBalance( Amount balance )
	{
		this.balance = balance;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription( String description )
	{
		this.description = description;
	}
}
